<?php

class User_Bootstrap extends Zend_Application_Module_Bootstrap {

    public function _initRouters()
    {
        $router = Zend_Controller_Front::getInstance()->getRouter();
        $router->addRoutes($this->_getArrayRouters());
    }

    private function _getArrayRouters()
    {

        return array(
            'login' => new Zend_Controller_Router_Route_Static('/login',
                    array(
                        'module' => 'user', 'controller' => 'index', 'action' => 'login'
                    )
            ),
            'logout' => new Zend_Controller_Router_Route_Static('/logout',
                    array(
                        'module' => 'user', 'controller' => 'index', 'action' => 'logout'
                    )
            ),
            'register' => new Zend_Controller_Router_Route_Static('/register',
                    array(
                        'module' => 'user', 'controller' => 'index', 'action' => 'register'
                    )
            )
        );
    }

}